'''
#元组嵌套字典
testbook = [
    {
        'name': 'gongzhe',
        'remark': None,
        'email': 'gongzhe@163.com',
        'phone': ['123456789', '123456789']
    },
    {
        'name': 'gongzhe2',
        'remark': None,
        'email': 'gongzhe2@163.com',
        'phone': ['123456789', '123456789']
    }
]
print(type(testbook))
#极客评论
address_book = {'Cecilia': [{'Nickname': 'Cici'}, {'Email':'cici@123.com'}, {'Number': [1234567, 9999999]}]}
print(address_book)
# 增加联系人
address_book.setdefault('Elizabeth', [{'Nickname': None}, {'Email':'liz@123.com'}, {'Number': [6666666, 7777777]}]
)
address_book.setdefault('gongzhe',[{'Nickname': '巩喆'},{'email':'gongzhe@163.com'}])
print(address_book)
# 删除联系人
address_book.pop('Elizabeth')
print(address_book)
'''
'''
#字典初步
address_book={'GongZhe':[{'chinese':'巩喆'},{'telephone':'19898783956'}]}
i=address_book
for key in i.keys():
    print(key)
    '''
'''
address_book={'name':'巩喆','telephone':'19898783956'}#创建字典，通讯录
print(type(address_book))#确定字典类型，setdefault仅适用于字典
address_book.setdefault('地址','陕西省')#添加地址
print(address_book)
address_book.pop('地址','陕西省')#删除地址
print(address_book)
'''
text=''''My teacher, Miss Wang, helped me a lot in my middle school life. She is a kind easygoing woman. I must thank her for making a confident girl.I used to be a shy and unconfident girl. Mrs. Wang noticed me. She took good care of me and encouraged me to join the school speech contest. Of course, I failed. But Mrs. Wang cheered me up and said every man is the architect of his own future.
From then on, I practiced every day. It goes without saying “No pain, no gain.” I won the contest in the second term. In my opinion, teachers are the same as gardeners and they volunteer today and gain tomorrow. Not only can they teach knowledge but also they can teach students how to be a successful man.
Thank you, Mrs. Wang. You make a duck become a beautiful swan. I want to be a teacher that as same as you in the future.'''

text1=(text.split())
print(text1)
print(len(text))
print(text.count('') +1)

